package com.song.cloud.seata.service.Impl;

import com.song.cloud.seata.dao.accountDao;
import com.song.cloud.seata.service.accountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

/**
 * @Author ZhangGuisong
 * @Date 2021/3/4-22:23
 */
@Service
public class accountServiceImpl implements accountService {
    @Autowired
    private accountDao accountDao;

    @Override
    public void decreateAccount(Long userId, BigDecimal money) {
        accountDao.decreateAccount(userId,money);
    }
}
